package com.hornsun.domain.dbo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HealthIndexExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HealthIndexExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMemberGuidIsNull() {
            addCriterion("member_guid is null");
            return (Criteria) this;
        }

        public Criteria andMemberGuidIsNotNull() {
            addCriterion("member_guid is not null");
            return (Criteria) this;
        }

        public Criteria andMemberGuidEqualTo(String value) {
            addCriterion("member_guid =", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidNotEqualTo(String value) {
            addCriterion("member_guid <>", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidGreaterThan(String value) {
            addCriterion("member_guid >", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidGreaterThanOrEqualTo(String value) {
            addCriterion("member_guid >=", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidLessThan(String value) {
            addCriterion("member_guid <", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidLessThanOrEqualTo(String value) {
            addCriterion("member_guid <=", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidLike(String value) {
            addCriterion("member_guid like", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidNotLike(String value) {
            addCriterion("member_guid not like", value, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidIn(List<String> values) {
            addCriterion("member_guid in", values, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidNotIn(List<String> values) {
            addCriterion("member_guid not in", values, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidBetween(String value1, String value2) {
            addCriterion("member_guid between", value1, value2, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andMemberGuidNotBetween(String value1, String value2) {
            addCriterion("member_guid not between", value1, value2, "memberGuid");
            return (Criteria) this;
        }

        public Criteria andHeartRateIsNull() {
            addCriterion("heart_rate is null");
            return (Criteria) this;
        }

        public Criteria andHeartRateIsNotNull() {
            addCriterion("heart_rate is not null");
            return (Criteria) this;
        }

        public Criteria andHeartRateEqualTo(Float value) {
            addCriterion("heart_rate =", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateNotEqualTo(Float value) {
            addCriterion("heart_rate <>", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateGreaterThan(Float value) {
            addCriterion("heart_rate >", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateGreaterThanOrEqualTo(Float value) {
            addCriterion("heart_rate >=", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateLessThan(Float value) {
            addCriterion("heart_rate <", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateLessThanOrEqualTo(Float value) {
            addCriterion("heart_rate <=", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateIn(List<Float> values) {
            addCriterion("heart_rate in", values, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateNotIn(List<Float> values) {
            addCriterion("heart_rate not in", values, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateBetween(Float value1, Float value2) {
            addCriterion("heart_rate between", value1, value2, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateNotBetween(Float value1, Float value2) {
            addCriterion("heart_rate not between", value1, value2, "heartRate");
            return (Criteria) this;
        }

        public Criteria andWeightIsNull() {
            addCriterion("weight is null");
            return (Criteria) this;
        }

        public Criteria andWeightIsNotNull() {
            addCriterion("weight is not null");
            return (Criteria) this;
        }

        public Criteria andWeightEqualTo(Float value) {
            addCriterion("weight =", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualTo(Float value) {
            addCriterion("weight <>", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThan(Float value) {
            addCriterion("weight >", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualTo(Float value) {
            addCriterion("weight >=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThan(Float value) {
            addCriterion("weight <", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualTo(Float value) {
            addCriterion("weight <=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightIn(List<Float> values) {
            addCriterion("weight in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotIn(List<Float> values) {
            addCriterion("weight not in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightBetween(Float value1, Float value2) {
            addCriterion("weight between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotBetween(Float value1, Float value2) {
            addCriterion("weight not between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureIsNull() {
            addCriterion("min_blood_pressure is null");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureIsNotNull() {
            addCriterion("min_blood_pressure is not null");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureEqualTo(Float value) {
            addCriterion("min_blood_pressure =", value, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureNotEqualTo(Float value) {
            addCriterion("min_blood_pressure <>", value, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureGreaterThan(Float value) {
            addCriterion("min_blood_pressure >", value, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureGreaterThanOrEqualTo(Float value) {
            addCriterion("min_blood_pressure >=", value, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureLessThan(Float value) {
            addCriterion("min_blood_pressure <", value, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureLessThanOrEqualTo(Float value) {
            addCriterion("min_blood_pressure <=", value, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureIn(List<Float> values) {
            addCriterion("min_blood_pressure in", values, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureNotIn(List<Float> values) {
            addCriterion("min_blood_pressure not in", values, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureBetween(Float value1, Float value2) {
            addCriterion("min_blood_pressure between", value1, value2, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMinBloodPressureNotBetween(Float value1, Float value2) {
            addCriterion("min_blood_pressure not between", value1, value2, "minBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureIsNull() {
            addCriterion("max_blood_pressure is null");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureIsNotNull() {
            addCriterion("max_blood_pressure is not null");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureEqualTo(Float value) {
            addCriterion("max_blood_pressure =", value, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureNotEqualTo(Float value) {
            addCriterion("max_blood_pressure <>", value, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureGreaterThan(Float value) {
            addCriterion("max_blood_pressure >", value, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureGreaterThanOrEqualTo(Float value) {
            addCriterion("max_blood_pressure >=", value, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureLessThan(Float value) {
            addCriterion("max_blood_pressure <", value, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureLessThanOrEqualTo(Float value) {
            addCriterion("max_blood_pressure <=", value, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureIn(List<Float> values) {
            addCriterion("max_blood_pressure in", values, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureNotIn(List<Float> values) {
            addCriterion("max_blood_pressure not in", values, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureBetween(Float value1, Float value2) {
            addCriterion("max_blood_pressure between", value1, value2, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andMaxBloodPressureNotBetween(Float value1, Float value2) {
            addCriterion("max_blood_pressure not between", value1, value2, "maxBloodPressure");
            return (Criteria) this;
        }

        public Criteria andBloodSugarIsNull() {
            addCriterion("blood_sugar is null");
            return (Criteria) this;
        }

        public Criteria andBloodSugarIsNotNull() {
            addCriterion("blood_sugar is not null");
            return (Criteria) this;
        }

        public Criteria andBloodSugarEqualTo(Float value) {
            addCriterion("blood_sugar =", value, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarNotEqualTo(Float value) {
            addCriterion("blood_sugar <>", value, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarGreaterThan(Float value) {
            addCriterion("blood_sugar >", value, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarGreaterThanOrEqualTo(Float value) {
            addCriterion("blood_sugar >=", value, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarLessThan(Float value) {
            addCriterion("blood_sugar <", value, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarLessThanOrEqualTo(Float value) {
            addCriterion("blood_sugar <=", value, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarIn(List<Float> values) {
            addCriterion("blood_sugar in", values, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarNotIn(List<Float> values) {
            addCriterion("blood_sugar not in", values, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarBetween(Float value1, Float value2) {
            addCriterion("blood_sugar between", value1, value2, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andBloodSugarNotBetween(Float value1, Float value2) {
            addCriterion("blood_sugar not between", value1, value2, "bloodSugar");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("time is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("time is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Date value) {
            addCriterion("time =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Date value) {
            addCriterion("time <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Date value) {
            addCriterion("time >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("time >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Date value) {
            addCriterion("time <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Date value) {
            addCriterion("time <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Date> values) {
            addCriterion("time in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Date> values) {
            addCriterion("time not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Date value1, Date value2) {
            addCriterion("time between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Date value1, Date value2) {
            addCriterion("time not between", value1, value2, "time");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}